<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Str(name,age){
            this.name=name
            this.age=age
        }
        const str=new Str('构造函数',18)
        console.log(str);
        console.log(str.__proto__===Str.prototype);
        console.log(Str.prototype.constructor===Str);
        console.log(str.__proto__.__proto__===Object.prototype);
        console.log(Object.prototype===str.__proto__.__proto__);
        console.log(Object.prototype.constructor===Object);
        console.log(str.__proto__.__proto__.__proto__);
        // console.log(Str.prototype.__proto__.__proto__);
    </script>
</body>
</html>